package cn.good.biz.service;

import cn.good.mapper.ImageMapper;
import cn.good.pojo.Image;
import cn.good.service.ImageService;
import com.alibaba.dubbo.config.annotation.Service;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Service(interfaceClass = ImageService.class)
@Component
public class ImageServiceImpl implements ImageService {

    @Resource
    private ImageMapper imageMapper;

    @Override
    public int saveImage(Image image) {
        return imageMapper.insert(image);
    }
}
